import request from '@/router/axios'

export function supplierFetchList(query) {
  return request({
    url: '/eims/supplier/page',
    method: 'get',
    params: query
  })
}

export function getSupplierInfoList() {
  return request({
    url: '/eims/supplier/getList',
    method: 'get'
  })
}

export function supplierAddObj(obj) {
  return request({
    url: '/eims/supplier',
    method: 'post',
    data: obj
  })
}

export function supplierGetObj(id) {
  return request({
    url: '/eims/supplier/' + id,
    method: 'get'
  })
}

export function supplierDelObj(id) {
  return request({
    url: '/eims/supplier/' + id,
    method: 'delete'
  })
}

export function supplierPutObj(obj) {
  return request({
    url: '/eims/supplier',
    method: 'put',
    data: obj
  })
}
